package p;

public class Sample {

	
	private void m1()
	{
		System.out.println("THis is private method m1 in sample class");
	}
	
	void m2()
	{
		System.out.println("This is default methos m2 in class sample");
		m1();
	}
	
	protected void m3()
	{
		System.out.println("This is protected method m3 in calss sample");
		m1();
	}
	public void m4()
	{
		System.out.println("This is public method m4 in calss sample");
	}
}
